/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sgh_novo;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import principal.Inicial;
import principal.banco.bd;

/**
 *
 * @author Diego
 */
public class SGH_Novo
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        try
        {
            for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels())
            {
                if ("Windows".equals(info.getName()))
                {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException exc)
        {
        }

        bd.Conectar();

        java.awt.EventQueue.invokeLater(
                new Runnable()
                {

                    public void run()
                    {
                        Thread.currentThread().setName("cadastrotipoquarto");
                        Inicial p = new Inicial();

                        p.setLocationRelativeTo(null);
                        p.setVisible(true);
                    }
                });
    }
}
